package com.bwie.controller;

import com.bwie.pojo.TbWinRecord;
import com.bwie.service.TbWinRecordService;
import com.bwie.utils.R;
import com.bwie.vo.WinVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/product/index")
public class WinController {
    @Autowired
    TbWinRecordService tbWinRecordService;
    @PostMapping("/getWinList")
    public R getWinList(@RequestBody WinVo winVo){
        return tbWinRecordService.getWinList(winVo);
    }
}
